package com.antler.smt.service.portal;

import com.antler.smt.entity.ProductionLogEntity;
import com.antler.smt.request.portal.ProductionLogReq;
import com.antler.smt.response.base.Result;
import com.github.pagehelper.PageInfo;

/**
 * @author zhangyi
 * @date 2018/5/18 10:06
 */
public interface ProductionLogService {

    /**
     * 写入日志
     *
     * @param req
     * @return
     */
    Result writeLog(ProductionLogReq req);

    /**
     * 获取该订单下的生产进度
     *
     * @param orderId
     * @return
     */
    Result<PageInfo<ProductionLogEntity>>getLogByCurrentOrder(Long orderId,Long memberId);
}
